<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

    <div id="app">
        {{msg}}
    </div>

    <script>
        var vm = new Vue({
            el: "#app",
            data: {
                msg
            },
            beforeCreate: function () {
                console.log('beforeCreate');
            },
            created: function () {
                console.log('crated');
            },
            beforeMount: function () {
                console.log('beforeMount');
            },
            mounted: function () {
                console.log('mounted');
            },
            beforeUpdate: function () {
                console.log('beforeUpdate')
            }

        })
    </script>

</body>

</html>